#ifndef _CALCULATE_H_
#define _CALCULATE_H_

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
/* Public typedef ------------------------------------------------------------*/
/* Public variables ----------------------------------------------------------*/
/* Public define -------------------------------------------------------------*/
/* Public macro --------------------------------------------------------------*/
#define RATE(value, base, expand)   ((base==0)? 0: ((value * expand) / base))
#define ABS(x)  ((x > 0)? x: (-x))
    
/* Public function prototypes ------------------------------------------------*/

#endif
